<?php
namespace app\home\controller;
use app\home\model\Order as M;
use app\home\model\ComplaintsTwo;
/**
 * 首页控制器
 */
class Beautiful extends Base
{
  /**
   * 首页-售前
   */
  public function index() {
    return $this->fetch('/beautiful_before');
  } 
  /**
   * 首页-售前
   */
  public function indexAfter() {
    return $this->fetch('/beautiful_after');
  } 
  /**
   * 首页-业务关系
   */
  public function indexCooperate() {
    $this->assign('url', input('url'));
    return $this->fetch('/beautiful_cooperate');
  } 
  /**
   * 添加留言
   */
  public function addBefore(){
    $m = new M();
    $rs = $m->addBefore();
    return $rs;
  }
  /**
   * 添加留言
   */
  public function addAfter(){
    $m = new M();
    $rs = $m->addAfter();
    return $rs;
  }
  /**
   * 添加留言
   */
  public function addCooperate(){
    $m = new M();
    $rs = $m->addCooperate();
    return $rs;
  }
  /**
   * 投诉内容二级分类
   */
  public function listQuery(){
    $m = new ComplaintsTwo();
    $rs = $m->listQuery();
    return ZHTReturn("", 1, $rs);
  }
}
